package com.hulk.dryad.manage.boot.logger;

import com.hulk.dryad.manage.boot.launch.DryadLogLevel;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 日志配置
 *
 * @author hulk
 */
@Data
@ConfigurationProperties(DryadLogLevel.REQ_LOG_PREFIX)
public class DryadRequestLogProperties {
	


	/**
	 * Spring Mapping 的日志
	 */
	private Mapping mapping = new Mapping();

	/**
	 * 请求响应的日志界别
	 */
	private Request request = new Request();

	@Getter
	@Setter
	public static class Mapping {
		/**
		 * 是否开启路由的日志，默认：false
		 */
		private Boolean enabled = Boolean.FALSE;
	}

	@Getter
	@Setter
	public static class Request {
		/**
		 * 日志级别配置，默认：BASIC
		 */
		private DryadLogLevel level = DryadLogLevel.BASIC;
	}

}
